<?php

namespace IMT\EventBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * IMT\EventBundle\Entity\ParticipantEvent
 *
 * @ORM\Table(name="participant_event")
 * @ORM\Entity()
 */
class ParticipantEvent
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var datetime $creaDate
     *
     * @ORM\Column(name="creaDate", type="datetime")
     */
    private $creaDate;

    /**
     * @var datetime $editDate
     *
     * @ORM\Column(name="editDate", type="datetime", nullable="true")
     */
    private $editDate;

    /**
     * @var smallint $particpationState
     *
     * @ORM\Column(name="particpationState", type="smallint")
     */
    private $particpationState;
    
     /**
     * @ORM\ManyToOne(targetEntity="IMT\EventBundle\Entity\Event", inversedBy="participants")
     * @ORM\joinColumn(name="event_id", referencedColumnName="id")
     */
    private $event;
    
    /**
     * @ORM\ManyToOne(targetEntity="IMT\UserBundle\Entity\Participant", inversedBy="events")
     * @ORM\joinColumn(name="participant_id", referencedColumnName="id")
     */
    private $participant;
    
    /**
     * @ORM\ManyToOne(targetEntity="IMT\AccountBundle\Entity\Account", inversedBy="events")
     * @ORM\joinColumn(name="account_id", referencedColumnName="id")
     */
    private $account;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set creaDate
     *
     * @param datetime $creaDate
     */
    public function setCreaDate($creaDate)
    {
        $this->creaDate = $creaDate;
    }

    /**
     * Get creaDate
     *
     * @return datetime 
     */
    public function getCreaDate()
    {
        return $this->creaDate;
    }

    /**
     * Set editDate
     *
     * @param datetime $editDate
     */
    public function setEditDate($editDate)
    {
        $this->editDate = $editDate;
    }

    /**
     * Get editDate
     *
     * @return datetime 
     */
    public function getEditDate()
    {
        return $this->editDate;
    }

    /**
     * Set particpationState
     *
     * @param smallint $particpationState
     */
    public function setParticpationState($particpationState)
    {
        $this->particpationState = $particpationState;
    }

    /**
     * Get particpationState
     *
     * @return smallint 
     */
    public function getParticpationState()
    {
        return $this->particpationState;
    }

    /**
     * Set event
     *
     * @param IMT\EventBundle\Entity\Event $event
     */
    public function setEvent(\IMT\EventBundle\Entity\Event $event)
    {
        $this->event = $event;
    }

    /**
     * Get event
     *
     * @return IMT\EventBundle\Entity\Event 
     */
    public function getEvent()
    {
        return $this->event;
    }

    /**
     * Set participant
     *
     * @param IMT\UserBundle\Entity\Participant $participant
     */
    public function setParticipant(\IMT\UserBundle\Entity\Participant $participant)
    {
        $this->participant = $participant;
    }

    /**
     * Get participant
     *
     * @return IMT\UserBundle\Entity\Participant 
     */
    public function getParticipant()
    {
        return $this->participant;
    }

    /**
     * Set account
     *
     * @param IMT\AccountBundle\Entity\Account $account
     */
    public function setAccount(\IMT\AccountBundle\Entity\Account $account)
    {
        $this->account = $account;
    }

    /**
     * Get account
     *
     * @return IMT\AccountBundle\Entity\Account 
     */
    public function getAccount()
    {
        return $this->account;
    }
}